<?php

require_once 'PipesImpl/Route.php';
require_once 'PipesImpl/User/AccessControl/Abstract.php';
require_once 'PipesImpl/User/Credentials.php';

class Pipes_User_AccessControl
{
	private $_controls = array();
	public function __construct(PipesImpl_User_AccessControl_Abstract $controls) {
		$this->_controls = $controls;
	}

	public function can(PipesImpl_User_Credentials $credentials, PipesImpl_Route $route) {
		return $this->_controls->can($credentials, $route);
	}
}
